package com.dotflat.xj.repository;

import com.dotflat.xj.domain.TargetClass;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface TargetClassRepository extends JpaRepository<TargetClass, String>, JpaSpecificationExecutor<TargetClass> {

    TargetClass findByCardCode(String cardCode);

    List<TargetClass> findByAreaId(String areaId);

    TargetClass findByAreaIdAndName(String areaId,String name);
}
